<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="//at.alicdn.com/t/font_2785500_uaihqmeko1.css">
  <title>模板</title>
  <style>
    body {
      padding: 20px 30px;
    }
    .every {
      padding: 5px;
      font-size: 18px;
    }
    .every > span {
      display: inline-block;
      width: 25px;
      height: 25px;
    }
    .icon-wenjian, .icon-wenjianjia {
      font-size: 20px;
    }
  </style>
</head>
<body>
  <h2>文件目录</h2>
  {{each arr}}
  <div class="every">
    <span class="iconfont{{if $value.isDirectory}} icon-wenjianjia{{/if}} {{if !$value.isDirectory}} icon-wenjian{{/if}}"></span>
    <a href="{{$value.clientPath}}">
      {{$value.name}}
    </a>
  </div>
  {{/each}}
</body>
</html>